import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SharedModule } from 'src/app/shared/shared.module';

import { EnvListComponent } from './env-list/env-list.component';
import { EnvDetailComponent } from './env-detail/env-detail.component';
import { EnvComponent } from './env.component';

const routes: Routes = [
  {
    path: '', component: EnvComponent,
    children: [
      {
        path: '', component: EnvListComponent,
        data: { breadcrumb: '环境列表' }
      },
      {
        path: 'env-list', component: EnvListComponent,
        data: { breadcrumb: '环境列表' }
      },
      {
        path: 'env-detail', component: EnvDetailComponent,
        data: { breadcrumb: '环境详情' }
      },
    ]
  }
];




@NgModule({
  imports: [
    RouterModule.forChild(routes),
    SharedModule
  ],
  declarations: [EnvDetailComponent, EnvListComponent, EnvComponent]
})
export class EnvModule { }
